//package com.amumu.drama.portal.controller;
//
//import com.amumu.drama.portal.modules.member.service.MemberService;
//import com.amumu.drama.portal.service.AuthService;
//import io.swagger.annotations.Api;
//import io.swagger.v3.oas.annotations.tags.Tag;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * 会员管理Controller
// * Created by macro on 2018/8/3.
// */
//@Controller
//@Api(tags = "用户")
//@Tag(name = "用户", description = "会员登录注册管理")
//@RequestMapping("/sso")
//@RestController
//public class UmsMemberController {
//    @Value("${jwt.tokenHeader}")
//    private String tokenHeader;
//    @Value("${jwt.tokenHead}")
//    private String tokenHead;
//    @Autowired
//    private MemberService memberService;
//    @Autowired
//    private AuthService authService;
//
////    @ApiOperation("会员注册")
////    @RequestMapping(value = "/register", method = RequestMethod.POST)
////    @ResponseBody
////    public CommonResult register(@RequestParam String username,
////                                 @RequestParam String password,
////                                 @RequestParam String telephone,
////                                 @RequestParam String authCode) {
////        authService.register(username, password, telephone, authCode);
////        return CommonResult.success(null, "注册成功");
////    }
//
////    @ApiOperation("会员登录")
////    @RequestMapping(value = "/login", method = RequestMethod.POST)
////    @ResponseBody
////    public CommonResult login(@RequestParam String username,
////                              @RequestParam String password) {
////        String token = authService.login(username, password);
////        if (token == null) {
////            return CommonResult.validateFailed("用户名或密码错误");
////        }
////        Map<String, String> tokenMap = new HashMap<>();
////        tokenMap.put("token", token);
////        tokenMap.put("tokenHead", tokenHead);
////        return CommonResult.success(tokenMap);
////    }
//
//
//
////    @ApiOperation("获取验证码")
////    @RequestMapping(value = "/getAuthCode", method = RequestMethod.GET)
////    @ResponseBody
////    public CommonResult getAuthCode(@RequestParam String telephone) {
////        String authCode = authService.generateAuthCode(telephone);
////        return CommonResult.success(authCode, "获取验证码成功");
////    }
//
////    @ApiOperation("会员修改密码")
////    @RequestMapping(value = "/updatePassword", method = RequestMethod.POST)
////    @ResponseBody
////    public CommonResult updatePassword(@RequestParam String telephone,
////                                       @RequestParam String password,
////                                       @RequestParam String authCode) {
////        authService.updatePassword(telephone, password, authCode);
////        return CommonResult.success(null, "密码修改成功");
////    }
//
//}
